#author: 金荣财
#dest: 求杨辉三角第n行第k列

n = 11
k = 6
pre = []

for i in range(n):
    row = [1] * (i+1)
    
    for j in range(1, i):
        row[j] = pre[j] + pre[j-1]
    pre = row
    
print("-" * 30)
print(row)
print(row[k-1])